home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
NONPORT.ZIP
/
CURSOFF.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
52 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef cursoff
#ifndef NDEBUG
char *rcsid_cursoff = "$Header: c:/curses/nonport/RCS/cursoff.c%v 2.0 1992/11/15 03:18:26 MH Rel $";
#endif
/*man-start*********************************************************************
cursoff() - Turns off the hardware cursor.
PDCurses Description:
Turns off the hardware curses, it does nothing if it is already off.
PDCurses Return Value:
Returns OK upon success, ERR upon failure.
PDCurses Errors:
ERR will be returned (in the case of FLEXOS) if the hardware cursor
can not be disabled.
Portability:
PDCurses int cursoff( void );
**man-end**********************************************************************/
int cursoff(void)
{
if (_cursvar.visible_cursor)
{
_cursvar.visible_cursor = FALSE;
#ifdef OS2
PDC_set_cursor_mode(32, 33); /* turn it off */
#else
switch (_cursvar.adapter)
{
case _FLEXOS:
PDC_set_cursor_mode(_cursvar.visible_cursor, 0);
break;
default:
PDC_set_cursor_mode(32, 33); /* turn it off */
break;
}
#endif
}
return( OK );
}